import request from "@/utils/request";

export default {
  getTodayAlarmNum: (data: any) => {
    return request({
      url: "/monitorcentor/getTodayAlarmNum",
      method: "GET",
      data,
      showLoading: true,
    });
  },
  getTodoList: (data: any) => {
    return request({
      url: "/home/getTodoList",
      method: "GET",
      data,
      showLoading: true,
    });
  },

  getPageTbOperationAlarm: (data: any) => {
    return request({
      url: "/alarm/pageTbOperationAlarm",
      method: "POST",
      data,
      showLoading: true,
    });
  },

  getPageTbWorkOrder: (data: any) => {
    return request({
      url: "/workOrder/pageTbWorkOrder",
      method: "POST",
      data,
      showLoading: true,
    });
  },

  fileUpload: (data: any) => {
    return request({
      url: "/file/upload",
      method: "POST",
      data,
      showLoading: true,
    });
  },

  alarmGetById: (data: any) => {
    return request({
      url: "/alarm/getById",
      method: "GET",
      data,
      showLoading: true,
    });
  },

  operationAlarmRecordslistDataByOperationAlarmId: (data: any) => {
    return request({
      url: "/operationAlarmRecords/listDataByOperationAlarmId",
      method: "GET",
      data,
      showLoading: true,
    });
  },

  baseapiUserListUser: (data: any) => {
    return request({
      url: "/baseapi/user/listUser",
      method: "POST",
      data,
      showLoading: true,
    });
  },

  workOrderAssignWorkOrder: (data: any) => {
    return request({
      url: "/workOrder/assignWorkOrder",
      method: "POST",
      data,
      showLoading: true,
    });
  },

  alarmUpdateById: (data: any) => {
    return request({
      url: "/alarm/updateById",
      method: "POST",
      data,
      showLoading: true,
    });
  },

  workOrderGetById: (data: any) => {
    return request({
      url: "/workOrder/getById",
      method: "GET",
      data,
      showLoading: true,
    });
  },

  // 处理
  workOrderUpdateById: (data: any) => {
    return request({
      url: "/workOrder/updateById",
      method: "POST",
      data,
      showLoading: true,
    });
  },

  // 处理措施
  baseapiDmListDm: (data: any) => {
    return request({
      url: "/baseapi/dm/listDm",
      method: "GET",
      data,
      showLoading: true,
    });
  },

  workOrderTransferWorkOrder: (data: any) => {
    return request({
      url: "/workOrder/transferWorkOrder",
      method: "POST",
      data,
      showLoading: true,
    });
  },

  trueTaskUpdateById: (data: any) => {
    return request({
      url: "/true_task/updateById",
      method: "POST",
      data,
      showLoading: true,
    });
  },
  
};
